-- GENERATED SPELL FOR [Dark Rune Warrior] --


function spell0_27960(pUnit, Event) --@Cleave,n/a--
pUnit:FullCastSpellOnTarget(42724,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_27960', 551, 1)
end

function spell1_27960(pUnit, Event) --@Heroic Strike,n/a--
pUnit:FullCastSpellOnTarget(53395,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_27960', 543, 1)
end

function spell2_27960(pUnit, Event) --@Heroic Strike,n/a--
pUnit:FullCastSpellOnTarget(59035,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_27960', 586, 1)
end

function Sorts_27960(pUnit, Event)
local choix_sorts_27960 = math.random(0, 2)
if choix_sorts_27960 == 0 then
pUnit:RegisterEvent('spell0_27960', 1, 1)
end
if choix_sorts_27960 == 1 then
pUnit:RegisterEvent('spell1_27960', 1, 1)
end
if choix_sorts_27960 == 2 then
pUnit:RegisterEvent('spell2_27960', 1, 1)
end
end

function mob27960_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_27960', math.random(1500, 3000), 1)
end

function mob27960_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob27960_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob27960_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(27960, 1, 'mob27960_Action')
RegisterUnitEvent(27960, 2, 'mob27960_Leave')
RegisterUnitEvent(27960, 3, 'mob27960_Kill')
RegisterUnitEvent(27960, 4, 'mob27960_Die')
